import { instance } from '@/utils/request'

export const getAddressList = () => {
  return instance.get('/address/list')
}

export const addAddress = (data) => {
  return instance.post('/address/add', { form: data })
}

export const getAreaList = () => {
  return instance.get('/region/tree')
}
